Temps
Exemple
import olem
print("Waiting 2 seconds")
olem.delay_ms(2000)
# Mesurer la durée d'un déplacement
start = olem.get_time_ms()
olem.move(100, 0, 0)
olem.wait_stop_moving()
print("The movement took " + str(olem.get_time_ms() - start) + " ms")
Fonctions
delay_ms(delay)
Wait for the given duration. The game can still be stopped during the wait.
| Parameter | Description |
|---|---|
delay | duration in ms |
get_time_ms()
Returns: time since OLEM started in ms